package de.dhe.opencart.repository.domain;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the download_description database table.
 * 
 */
@Embeddable
public class DownloadDescriptionPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="download_id")
	private int downloadId;

	@Column(name="language_id")
	private int languageId;

    public DownloadDescriptionPK() {
    }
	public int getDownloadId() {
		return this.downloadId;
	}
	public void setDownloadId(int downloadId) {
		this.downloadId = downloadId;
	}
	public int getLanguageId() {
		return this.languageId;
	}
	public void setLanguageId(int languageId) {
		this.languageId = languageId;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof DownloadDescriptionPK)) {
			return false;
		}
		DownloadDescriptionPK castOther = (DownloadDescriptionPK)other;
		return 
			(this.downloadId == castOther.downloadId)
			&& (this.languageId == castOther.languageId);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.downloadId;
		hash = hash * prime + this.languageId;
		
		return hash;
    }
}